﻿using System.ServiceModel;
using RrslLite.Net.Attributes;
using RrslLite.Net.Messages;

namespace RrslLite.Net.Contracts
{
    [ServiceContract]
    public interface IWcfMessageService
    {
        [OperationContract(Name = "InvokeOperations")]
        [ServiceKnownType("GetKnownTypes", typeof(KnownTypeProvider))]
        [TransactionFlow(TransactionFlowOption.Allowed)]
        Message[] InvokeOperations(params Message[] messages);
    }
}
